<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Laboratorio1</title>
</head>
<body>
<f:view> 
<h:form>
<table>
<tr>
<td><h:outputText value="#{idioma.usuario } " ></h:outputText></td>
<td><h:inputText required="true" id="usuario" value="#{loginBean.username}" ></h:inputText>
<h:message for="usuario" showSummary="true" style="color:red"></h:message>
</td></tr><tr>   
<td><h:outputText value="#{idioma.pas } " ></h:outputText></td>
<td><h:inputSecret required="true" id="contrasena" 
value="#{loginBean.password}" />
<h:message for="contrasena" showSummary="true" style="color:red"></h:message>
</td></tr>
<br>
<tr><td></td><td><h:commandButton value="Entrar" action="login" ></h:commandButton>
</td>
</tr>

 
<h:panelGrid columns="2">
		<h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
			valueChangeListener="#{language.countryLocaleCodeChanged}">
   			<f:selectItems value="#{language.countriesInMap}" /> 
   		</h:selectOneMenu>
</h:panelGrid> 

</table>
</h:form>
</f:view>
</body>
</html>